class CreateMessageParts < ActiveRecord::Migration
  def self.up
    create_table :message_parts do |t|
      # Meta Data Fields for Message Part
      t.string  "form_id"
      t.integer "current_part"
      t.integer "total_parts"
      t.string  "payload"
      t.boolean "processed"
      # Fields from ping.rb - Used for Geocoding
      t.string   "content"
      t.string   "address"
      t.string   "country"
      t.string   "locality"
      t.string   "thoroughfare"
      t.string   "postalcode"
      t.integer  "accuracy"
      t.float    "latitude"
      t.float    "longitude"
      t.string   "message"
      t.integer  "phone_id"
      t.integer  "ping_type"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "state"
      t.integer  "tid"
      t.string   "street_number"
      t.string   "twitter_username"
      t.timestamps
    end
  end

  def self.down
    drop_table :message_parts
  end
end
